package com.zzh.service;


import com.zzh.model.User;
import org.apache.dubbo.config.annotation.DubboService;

import javax.ws.rs.GET;
import javax.ws.rs.Path;
import javax.ws.rs.PathParam;
import javax.ws.rs.Produces;
import javax.ws.rs.core.MediaType;

@DubboService
@Path("/user")
@Produces
public class UserServiceImpl implements UserService {

    /**
     * @description:
     * @author: zzh 
     * @date: 2022/7/25 17:14
     * @param: [uid]
     * @return: com.zzh.model.User
     **/
    @GET
    @Path("/{uid}")
    @Produces(MediaType.APPLICATION_JSON)
    public User getUser(@PathParam("uid") String uid){
        User zzh = new User(uid,"xx");
        return zzh;
    }


}
